package com.common.test;

	/**
		@author 王嘉犇
		@name 登录job系统
		@type 动作类
	 */

public class JobLogin extends OperationBase {

	public JobLogin(UITestBase tb){
		super(tb);
	}
	
    public void login(String username, String password) throws Exception{
    	log.info("===start login Operation===");
    	JobLoginPage lp = new JobLoginPage(tb);
        switchToDefaultContent();
        waitForElementExist(lp.accountinput);
        lp.accountinput.type(username);
        pause(1000);
        lp.passwordinput.clear();
        lp.passwordinput.type(password);
        pause(1500);
        lp.loginbutton.submit();
        log.info("===end login Operation===");
    }
}
